<extend name="Public:base"/>
<block name="content">
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-info">
			<div class="panel-heading">增加员工</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-12">
                        <form action="{$action}" class="form-horizontal" method="post">
                            <div class="form-group">
                                <label for="emp_user" class="col-sm-2 control-label">用户名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="emp_user" id="emp_user" placeholder="用户的昵称" value="{$info.emp_user}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="emp_account" class="col-sm-2 control-label">帐号</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="emp_account" id="emp_account" placeholder="用于登陆的帐号" value="{$info.emp_account}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="emp_name" class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="emp_name" id="emp_name" placeholder="真实姓名" value="{$info.emp_name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="emp_gender" class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                    <label class="radio-inline"><input type="radio" name="emp_gender" id="emp_gender" value="1" checked> 男</label>
                                    <label class="radio-inline"><input type="radio" name="emp_gender" value="0"> 女</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="emp_age" class="col-sm-2 control-label">年龄</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="emp_age" id="emp_age" placeholder="年龄" value="{$info.emp_age}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="emp_power" class="col-sm-2 control-label">权限</label>
                                <div class="col-sm-10">
                                    <label class="radio-inline"><input type="radio" name="emp_power" id="emp_power" value="1" checked> 管理员</label>
                                    <label class="radio-inline"><input type="radio" name="emp_power" value="2"> 普通员工</label>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="emp_remark" class="col-sm-2 control-label">备注</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" name="emp_remark" id="emp_remark" placeholder="备注" rows="6">{$info.emp_remark}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <input type="hidden" value="{$info.emp_id}" name="emp_id">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-info">提交</button>
                                </div>
                            </div>
                        </form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
ThinkPHP.setValue('emp_power', "{$info.emp_power}");
ThinkPHP.setValue('emp_gender', "{$info.emp_gender}");
</script>
</block>